home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
tobby_on_ice.swf
/
scripts
/
DefineSprite_128
/
frame_1
/
DoAction.as
Wrap
Text File
|
2011-08-19
|
620b
|
35 lines
function main()
{
if(_root.pauseFlg)
{
return undefined;
}
if(this.stat === "stay")
{
this.stay();
}
}
function stay()
{
var _loc2_ = this;
if(_loc2_.hitMC.hitTest(_root.tobbyMC.hitMC))
{
var _loc1_ = _root.tobbyMC.hitJelly();
if(_loc1_ == true)
{
trace("hit");
_loc2_.stat = "del";
_loc2_._visible = false;
}
}
}
function reset()
{
var _loc1_ = this;
_loc1_.stat = "stay";
_loc1_._visible = true;
_loc1_.anmMC.gotoAndPlay("stay");
}
_root.jellyOnIceMC = this;
this.stat = "stay";